<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>步行规划</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <script src="http://webapi.amap.com/maps?v=<?php echo (C("Amap_Version")); ?>&key=<?php echo (C("Amap_Web_Key")); ?>"></script>

	<script type="text/javascript" src="/electriccar/Public/jquery-2.1.4.js"></script>
    <style type="text/css">
        html,
        body {
            height: 100%;
            margin: 0px;
            padding: 0px
        }
        #container {
            width: 100%;
            height: 100%
        }
    </style>
</head>

<body>
    <div id="container"></div>
    <script type="text/javascript">
		var mapObj = new AMap.Map("container", {
			resizeEnable: true,
			center: [108.947039, 34.259557],//默认钟楼
			zoom: 11
		});
		//添加编辑控件
		mapObj.plugin(["AMap.Walking"], function() {
			//步行导航
			var walking = new AMap.Walking({
				map: mapObj
			}); 
			//根据起终点坐标规划步行路线
			walking.search([116.399028, 39.845042], [116.436281, 39.880719]);
		});
    </script>
</body>

</html>